package com.xuecheng.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xuecheng.po.CoursePublish;
import com.xuecheng.vo.CoursePreviewVO;

import java.io.File;


public interface CoursePublishService extends IService<CoursePublish> {
	
	/**
	 * 获取课程预览信息
	 */
	CoursePreviewVO getCoursePreviewInfo(Long courseId);
	
	/**
	 * 提交审核
	 */
	void commitAudit(Long companyId, Long courseId);
	
	/**
	 * 课程发布接口
	 */
	void publish(Long companyId, Long courseId);
	
	/**
	 * 课程静态化
	 */
	File generateCourseHtml(Long courseId);
	
	/**
	 * 上传课程静态化页面
	 */
	void uploadCourseHtml(Long courseId, File file);
	
	//创建索引
	Boolean saveCourseIndex(Long courseId);
	
	/**
	 * 查询课程发表信息
	 */
	CoursePublish getCoursePublish(Long courseId);
	
	CoursePublish getCoursePublishCache(Long courseId);
}
